package com.start_eternity.oasissafewalk.pojo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class OrderDTO {

    private Integer orderId;

    //订单编号
    @JsonProperty("orderNo")
    private String orderNo;

    //订单支付 状态
    private int orderStatus;

    //支付金额
    private Float orderAmount;

    //支付渠道名称
    private String payChannel;

    //随送人
    private int pad;

    //出发点
    private String fromPlaceId;

    //目的地
    private String toPlaceId;

    //备注
    private String orderRemark;

    //关联家长id
    private Integer parentId;

    @JsonProperty("pName")
    private String pName;

    //关联学生id
    private Integer sId;

    @JsonProperty("sName")
    private String sName; //姓名

    //下单时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime ctime;

    //订单完成 状态
    private int pickupStatus;
}
